﻿using System;
using AutoMapper;
using MyMES.Domain.zmc;
using MyMES.Read.API.Dtos;
using MyMES.Domain.yjb;
using MyMES.Domain.zmc;
using MyMES.Read.API.Application.Commends.settingCommand;
using MyMES.Read.API.Dtos;
using MyMES.Domain.W.Liststructure;
using MyMES.Domain.zyy;
using MyMES.Read.API.Application.Commends.Productionorderss;

namespace MyMES.Read.API
{
    public class AutoMapperFilePro:Profile
    {
        public AutoMapperFilePro()
        {


            CreateMap<Enterprise, EnterDepDto>().ReverseMap();
            CreateMap<Department, EnterDepDto>().ReverseMap();




            CreateMap<Customermanagement, CustTypeDto>().ReverseMap();
            CreateMap<CustomerTypes, CustTypeDto>().ReverseMap();


            //客户

            CreateMap<Arrivalnotice, ArrivalnoSupplierDtos>().ReverseMap();
            CreateMap<Supplier, ArrivalnoSupplierDtos>().ReverseMap();
            CreateMap<StoragePurchase, ArrivalnoSupplierDtos>().ReverseMap();



            //采购入库
            CreateMap<Incominginformation, IncomArrivaSuppDtos>().ReverseMap();
            CreateMap<Arrivalnotice, IncomArrivaSuppDtos>().ReverseMap();
            CreateMap<Supplier, IncomArrivaSuppDtos>().ReverseMap();
            CreateMap<StoragePurchase, IncomArrivaSuppDtos>().ReverseMap();


            CreateMap<Arrivalnotice, MateArrivaDtos>().ReverseMap();
            CreateMap<Materialmanagement, MateArrivaDtos>().ReverseMap();


            
            //开票管理
            CreateMap<Billingmanagement, BilingmanagementDTO>().ReverseMap();
            CreateMap<Salesordersheet, BilingmanagementDTO>().ReverseMap();
            CreateMap<BillingSales, BilingmanagementDTO>().ReverseMap();

            //到票管理
            CreateMap<Arrivalmanagement, ArrivalmanagementDTO>().ReverseMap();
            CreateMap<ArrivalSales, ArrivalmanagementDTO>().ReverseMap();
            CreateMap<Salesordersheet, ArrivalmanagementDTO>().ReverseMap();

            CreateMap<Customermanagement, CustTypeDto>().ReverseMap();
            CreateMap<CustomerTypes, CustTypeDto>().ReverseMap();



            CreateMap<WorkOrderInfo, WorkOrderInfoCommand>().ReverseMap();
            CreateMap<ProductionTasks, ShowGttCommand>().ReverseMap();
            //BOM

            CreateMap<BOMguan, CustTypeDto>().ReverseMap();
            CreateMap<BomOperate, CustTypeDto>().ReverseMap();

            CreateMap<Process, KanbanDtos>().ReverseMap();
            CreateMap<WorkOrder, KanbanDtos>().ReverseMap();
            CreateMap<Requisition, KanbanDtos>().ReverseMap();
            CreateMap<Arrivalnotice, KanbanDtos>().ReverseMap();
            CreateMap<ProcessInfo, KanbanDtos>().ReverseMap();



            CreateMap<Productionorders, ProducStoresWorkOrdeDto>().ReverseMap();
            CreateMap<Materialmanagement, ProducStoresWorkOrdeDto>().ReverseMap();
            CreateMap<WorkOrder, ProducStoresWorkOrdeDto>().ReverseMap();
            CreateMap<woekderProess, ProducStoresWorkOrdeDto>().ReverseMap();


            CreateMap<Process, ProcessinfoDto>().ReverseMap();
            CreateMap<ProcessInfo, ProcessinfoDto>().ReverseMap();



            CreateMap<Materialmanagement, ProductiondetailsDtos>().ReverseMap();
            CreateMap<WorkOrder, ProductiondetailsDtos>().ReverseMap();
            CreateMap<Productionorders, ProductiondetailsDtos>().ReverseMap();
            CreateMap<woekderProess, ProductiondetailsDtos>().ReverseMap();
            


            CreateMap<woekderProess, woekderProessProduprocDtos>().ReverseMap();
            CreateMap<Process, woekderProessProduprocDtos>().ReverseMap();
            CreateMap<Productionorders, woekderProessProduprocDtos>().ReverseMap();



            CreateMap<Productionorders, MaterialmanagementProductionDtos>().ReverseMap();
            CreateMap<Materialmanagement, MaterialmanagementProductionDtos>().ReverseMap();



            CreateMap<woekderProess, WorkpromaterDtos>().ReverseMap();
            CreateMap<Productionorders, WorkpromaterDtos>().ReverseMap();
            CreateMap<Process, WorkpromaterDtos>().ReverseMap();


            CreateMap<WorkOrder, GetWorkoperateCommends>().ReverseMap();


            


        }
    }
}
